package global

import (
	"github.com/gin-contrib/cors"
	"time"
)

// cors config
var CorsOptions = cors.Config{
	AllowMethods:     []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"},
	AllowHeaders:     []string{"Origin", "Content-Length", "Content-Type", "Token", "Authorization", "Access-Control-Allow-Origin", "*"},
	AllowCredentials: false,
	MaxAge:           12 * time.Hour,
	AllowAllOrigins:  true,
}
